<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{auditedCertList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="moduleName" value="已审核的资质"></f:viewParam>
	   	<f:viewParam name="supplierName" value="#{auditedCertList.parameterValues['supplierName']}"></f:viewParam>
   		<f:viewParam name="qualificationClassId" value="#{auditedCertList.parameterValues['qualificationClassId']}"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">
			<div style="height:50px;margin-left:10px">				
				<p:outputLabel value="中介名称："></p:outputLabel>				
				<p:inputText value="#{auditedCertList.parameterValues['supplierName']}"></p:inputText>
				<p:outputLabel value="资质大类："></p:outputLabel>				
				<p:selectOneMenu  value="#{auditedCertList.parameterValues['qualificationClassId']}">
								<f:selectItem itemLabel="请选择" itemValue="#{null}" />
								<f:selectItems  value="#{qualificationClassList.resultList}"
												var="_qc"
												itemLabel="#{_qc.name}"
												itemValue="#{_qc.id}"
												/>
				</p:selectOneMenu>
				<div class="actionButtons">
					<p:commandButton value="查询" ajax="false"   action="auditedCerts.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					<p:button value="重置" outcome="auditedCerts.xhtml"></p:button>
				</div>		
				<div class="clearbt"></div>
			</div>
			<p:panel id="searchResult">
				<p:dataTable value="#{auditedCertList.resultList}" var="_cert"  varStatus="_status">
					
					<p:column>
						<f:facet name="header">中介名称</f:facet>
						#{_cert.serviceSupplier.cnname}
					</p:column>
					
					<p:column headerText="资质大类">
						<h:outputText value="#{_cert.qualificationClass.name}" />
					</p:column>
					
					<p:column headerText="资质审核单位">
						<h:outputText value="#{_cert.approveDepartmentName}" />
					</p:column>
					
					<p:column headerText="资质有效日期">
						<h:outputText value="#{_cert.allotedDate}" />
					</p:column>
					<p:column >
						<f:facet name="header">审核人</f:facet>
						<h:outputText value="#{_cert.professionUser.cnname}" />
					</p:column>
					<p:column width="110">
						<f:facet name="header">最近修改时间</f:facet>
						<h:outputText value="#{_cert.updateDate}">
							<f:convertDateTime pattern="yyyy-MM-dd"/>
						</h:outputText>
					</p:column>
					
					<p:column style="text-align: center" width="60">
						<f:facet name="header">操作</f:facet>
						<p:button value="查看" outcome="ServiceSupplierCertView.xhtml">							
							<f:param name="certId" value="#{_cert.id}"></f:param>
						</p:button>
					</p:column>
				</p:dataTable>
			</p:panel>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{auditedCertList}" />
			</ui:include>
			
		</h:form>
      
   	</ui:define>
</ui:composition>
